home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7742 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.ichange.com!newsmaster
  2. From: Jesse Liberty <jl@staff.ichange.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Learning C++
  5. Date: Mon, 19 Feb 1996 07:38:05 -0500
  6. Organization: AT&T
  7. Message-ID: <31286F2D.751A@staff.ichange.com>
  8. References: <3122A6ED.6BA4@inch.com> <3123414F.39CF@staff.ichange.com> <312620e8.88282208@news.brookings.net>
  9. NNTP-Posting-Host: 140.244.99.60
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14. CC: jl@staff.ichange.com
  15.  
  16. Rick W Nath wrote:
  17. > Jesse Liberty <jl@staff.ichange.com> wrote:
  18. > > Ken Blum wrote:
  19. > > >
  20. > > >  1) Is C a prerequisite to learning C++?  Or can I just take a C++
  21. > > >  class?
  22. > >
  23. > > Not only is it not prerequisite, I'd argue it is a MISTAKE to start with C.  C is syntactically a sub-set of C++ but the
  24. > > semantics (meaning of the language) are very different.  I would strongly urge you to learn C++ first.
  25. > >
  26. > I would definitely argue your first point.  There semantic differences
  27. > between C and C++, but the primary differences are that C++ supports Object
  28. > Oriented Programming within its semantics.  You can support an Object
  29. > Oriented style of programming in C just as well as C++.  Look at Motif,
  30. > that was written in an Object Oriented Style of Design but implemented in
  31. > C.
  32.  
  33. Yes, this is an old disagreement. You CAN do OO in C but you don't, and I disagree that you can NOT do so "just as well." The 
  34. language doesn't facilitate it.  
  35.  
  36. In any case, the point is there is no advantage to learning C first; you can learn all of the syntax and all of the semantics 
  37. of C++ at the same time, and not develop a procedural perspective which you'll only have to overcome.  Get a good intro to 
  38. C++ which assumes no C experience (Teach Yourself C++ in 21 Days, by Jesse Liberty SAMS 1994, for example <smile>) and learn 
  39. C++ as an object oriented language.
  40.  
  41. By the way, for what it is worth, Stroustrup strongly agrees with this point, and says so in both of his books.
  42.  
  43. -j
  44.  
  45. -- 
  46. Jesse Liberty    jl@staff.ichange.com
  47. AT&T             CIS: 72241,72
  48.